package com.qqtop10.manager.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qqtop10.manager.model.OrderDetailed;
import com.qqtop10.manager.dao.OrderDetailedMapper;
import com.qqtop10.manager.model.KeyEntity;
import com.qqtop10.manager.service.OrderDetailedService;

/**
 * 
 * @author Jovi-林兆维
 * @date 2015年9月19日
 * @version 1.0
 *
 */
@Service("orderDetailedService")
public class OrderDetailedServiceImpl implements OrderDetailedService {

	@Autowired
	private OrderDetailedMapper orderDetailedMapper;

	@Override
	public int deleteByPrimaryKey(KeyEntity key) {
		return orderDetailedMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int insert(OrderDetailed record) {
		return orderDetailedMapper.insert(record);
	}

	@Override
	public int insertSelective(OrderDetailed record) {
		return orderDetailedMapper.insertSelective(record);
	}

	@Override
	public OrderDetailed selectByPrimaryKey(KeyEntity key) {
		return orderDetailedMapper.selectByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKeySelective(OrderDetailed record) {
		return orderDetailedMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(OrderDetailed record) {
		return orderDetailedMapper.updateByPrimaryKey(record);
	}

	@Override
	public OrderDetailed selectByUuid(String uuid) {
		return orderDetailedMapper.selectByUuid(uuid);
	}

	@Override
	public List<OrderDetailed> selectByOrderUuid(String uuid) {
		return orderDetailedMapper.selectByOrderUuid(uuid);
	}

	@Override
	public List<Object> selectBySelective(Map<String, Object> map) {
		return orderDetailedMapper.selectBySelective(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		return orderDetailedMapper.count(map);
	}

	@Override
	public boolean add(OrderDetailed input) {
		return orderDetailedMapper.add(input) != 0;
	}

}
